/*
 * @Date: 2023-02-05 23:15:24
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-12-28 10:23:34
 * @Description: 路由初始化
 */
import { createRouter, createWebHistory } from 'vue-router'
import { appStore } from '@/stores/app'
// import { userStore } from '@/stores/user'
import baseRouter from './baseRouter'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    ...baseRouter,
    {
      path: '/:pathMatch(.*)*',
      name: 'errorPage',
      component: () => import('@/views/common/errorPage/index.vue')
    }
  ]
})

// router.beforeEach((to, form, next) => {
//   next()
// })
export default router
